package com.jpress.beans;

import java.util.Map;

import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import com.jpress.configuration.ConfigurationManager;


@ManagedBean(name="AplicacaoBean")
@ApplicationScoped
public class AplicacaoBean {

	private ConfigurationManager configurationManager;
	
	
	public AplicacaoBean(){}
	
	@PostConstruct
	public void init(){
		this.configurationManager = ConfigurationManager.getInstance();
		//teste
		System.out.println("teste-init");
		for(Map.Entry<String, String> parametro : configurationManager.getMapaParametros().entrySet()){
			System.out.println(parametro.getKey() + ", " + parametro.getValue());
		}
	}
}
